<!--
  @author heguanghua
  @since 2020/04/16 10:11
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <!--<th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>-->
            <th lay-data="{field:'sort', width:60, unresize:true, align:'center', edit:'text'}" th:if="${hasModifySort}">排序</th>
            <th lay-data="{field:'sort', width:60, unresize:true, align:'center'}" th:if="${!hasModifySort}">排序</th>
            <th lay-data="{field:'sysId', width:80, unresize:true, align:'center'}">ID</th>
            <th lay-data="{field:'sysName', width:180, unresize:true, align:'center'}">系统名称</th>
            <th lay-data="{field:'tableName', width:280, unresize:true, align:'left'}">URL</th>
            <th lay-data="{field:'remark', unresize:true, align:'left'}">备注说明</th>
            <th lay-data="{field:'owner', width:100, unresize:true, align:'center'}">责任人</th>
            <th lay-data="{field:'updateTime', width:110, unresize:true, align:'center'}">修改日期</th>
            <th lay-data="{field:'操作', width:120, unresize:true, align:'center', fixed:'right'}"></th>
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <!--<td></td>-->
            <td th:text="${item.sort}">sort</td>
            <td th:text="${item.sysId}">sysId</td>
            <td th:switch="${hasDetail}">
                <a th:lay-href="|${SYS_MCC}/sys/detail.action?sysId=${item.sysId}|" th:lay-text="系统信息" th:text="${item.sysName}" th:case="true">sysName</a>
                <th:block th:text="${item.sysName}" th:case="*"></th:block>
            </td>
            <td th:text="${item.url}">url</td>
            <td th:text="${item.remark}">remark</td>
            <td th:text="${item.owner}">owner</td>
            <td th:text="${T(com.zmn.common.utils.date.DateUtil).subDate(item.updateTime)}">updateTime</td>
            <td>
                <a th:lay-href="|${SYS_MCC}/sys/detail.action?sysId=${item.sysId}|" class="layui-btn layui-btn-xs layui-btn-primary" lay-text="系统信息" th:if="${hasDetail}"><i class="layui-icon">&#xe642;</i>详情</a>
                <a th:lay-href="|${SYS_MCC}/module/tree.action?sysId=${item.sysId}|" class="layui-btn layui-btn-xs layui-btn-primary" lay-text="模块管理" th:if="${hasModuleList}">模块</a>
            </td>
        </tr>
    </tbody>
</table>
